home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
A-Monthly Disks
/
(c)aba.d64
/
oki.120.3col.nlq
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
2KB
|
79 lines
1 PRINT"[147]"
100 REM ***************************
200 REM * PUBLIC DOMAIN *
300 REM * BY MARK BIM-MERLE *
400 REM * 10/18/87 *
450 REM * MOD. BY PARKE BLOYER *
480 REM * ON: 06/22/88 *
500 REM * FILE SELECTABLE *
600 REM * NLQ-TINY-DIR.-PRINTER *
700 REM * SET UP WITH OKIDATA 120 *
800 REM ***************************
850 REM
880 REM
900 SC=53280:POKE SC,0:POKE SC+1,0
1000 P1$=""
1100 P2$="[195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195][195]"
1200 DIMD$(144)
1250 CS=7:GOSUB 6000
1350 GOTO3900
1400 FORR=0TOI:D$(R)="":NEXTR:I=0:A$="":B$="":C$="":CLOSE 1:OPEN 1,8,0,"$0"
1450 PRINT"[147]"
1500 GET#1,A$,A$
1600 GET#1,A$,A$:IFA$=""THENCLOSE1:GOTO2400
1700 GET#1,A$,B$
1800 C$=MID$(STR$(ASC(A$+CHR$(0))+ASC(B$+CHR$(0))*256),2)+CHR$(34)+CHR$(32)
1900 GET#1,A$:IFA$=""THEN2050
2000 D$(I)=D$(I)+A$:GOTO1900
2050 BF$=(RIGHT$(D$(I),5)):BF=ASC(BF$)
2060 IFBF=32 AND I>0 THEN GOTO 2320
2100 D$(I)=C$+D$(I):D$(I)=LEFT$(D$(I),24):D$(I)=RIGHT$(D$(I),18)
2200 IFI=0THENI=1:GOTO1600
2305 PRINT"";D$(I);" [152]PRINT? (Y/N)";
2310 GETAA$:IFAA$="N"THENPRINT" NO":GOTO2320
2315 IFAA$<>"Y"THEN 2310
2318 PRINT" YES":I=I+1:GOTO 1600
2320 D$(I)="":GOTO1600
2400 PRINT"":PRINTP1$;"[213]";P2$;"[201]":PRINTP1$;"[194] BE SURE PRINTER IS SET UP [194]"
2500 PRINTP1$;"[194] PRESS [158]'P' TO PRINT [194]":PRINTP1$;"[202]";P2$;"[203]"
2600 GETA$:IFA$<>"P"THEN2600
2800 OPEN3,4,CS
2900 PRINT#3,CHR$(27);"8";CHR$(29);
2950 PRINT#3,T$(0);
3000 FORR=1TOISTEP3
3100 PRINT#3,;D$(R);" ";D$(R+1);" ";D$(R+2)
3200 NEXTR
3300 CLOSE3
3400 PRINT"[145][145][145]";P1$;"[194] ANOTHER? "
3500 PRINTP1$;"[194] Y /[129] N "
3600 GETQ$:IFQ$=""THEN3600
3700 IFQ$="Y"THENPRINT"[147]":GOTO1250
3800 PRINT"[147][158] THANX![144]":PRINT"":GOTO4500
3900 PRINT"[147] PLEASE SELECT"
3901 PRINT" SIDE A OR B"
3902 GETA$:IFA$<"A"ORA$>"B"THEN3902
3903 IF CS=0THEN GOSUB7000
3904 IF CS=7THEN GOSUB8000
3950 PRINT"[147]";P1$;"[213]";P2$;"[201]"
4000 PRINTP1$;"[194] INSERT DISK TO BE LABELED [194]"
4100 PRINTP1$;"[194] HIT ANY KEY TO CONTINUE [194]"
4200 PRINTP1$;"[202]";P2$;"[203]"
4300 GETA$:IFA$=""THEN4300
4400 GOTO1400
4500 END
6000 PRINT"[147][159] PLEASE SELECT"
6050 PRINT"[158] U[158]PPERCASE ONLY (U)"
6055 PRINT"[158] LOWER [153]&[158] UPPER [153](B)"
6060 GETA$:IFA$=""THEN 6060
6070 IFA$="U"THEN CS=0
6999 RETURN
7000 REM
7903 IFA$="A"THENT$(0)=" SIDE A"+CHR$(13)
7904 IFA$="B"THENT$(0)=" SIDE B"+CHR$(13)
7999 RETURN
8000 REM
8903 IFA$="A"THENT$(0)=" [211][201][196][197][160][193]"+CHR$(13)
8904 IFA$="B"THENT$(0)=" [211][201][196][197][160][194]"+CHR$(13)
8999 RETURN
9000 END